package com.fanjia.crm.mapper;

import com.fanjia.crm.model.Permission;

import java.util.List;

/**
 * Created by FanJia on 2020/9/19 21:15
 */
public interface PermissionMapper {
    public List<Permission> findAllMenus();
    public List<Permission> findAllPermission();
    public List<Permission> findAllParentMenus();

    public int findMaxZIndex();

    public Permission findPermissionById(int id);

    public void insert(Permission permission);

    public  List<Permission> findPermissionByUserId(Integer userId);
}
